import {request} from './request'

//查询用户个人信息
export function getProfileInfor(userId) {
  return request({
    url: '/user/selectUserById',
    params:{
      userId
    }
  })
}

//修改性别
export function setAgeInfor(sex,userId) {
  return request({
    url: '/user/updateUserSex',
    params:{
      sex,
      userId
    }
  })
}

//修改年龄

export function setSexInfor(age,userId,constellation) {
  return request ({
    url: '/user/updateUserAge',
    params: {
      age,
      userId,
      constellation
    }
  })
}
